package com.daiyang.librarymanagementsystem2.controller;

import com.daiyang.librarymanagementsystem2.entity.BookInfo;
import com.daiyang.librarymanagementsystem2.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/book")
public class BookController {
    @Autowired
    BookService bookService;
    @RequestMapping("/getList")
    public List<BookInfo> bookList() {
        return bookService.getList();
    }
}
